package com.tuanzi.loan.business.repository.settlement.custom;

import com.tuanzi.loan.business.entity.settlement.FirstpartyDataChangeRecord;
import com.tuanzi.loan.business.entity.settlement.JfSltBackData;
import com.tuanzi.loan.business.entity.settlement.SettlementUvRecord;
import com.tuanzi.loan.vo.request.settlement.SettlementUvReportRequest;
import com.tuanzi.loan.vo.response.settlement.SettlementUvReportResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

public interface JfBackDataRepositoryCustom {

	/**
	 * 根据模式类型、开始时间、结束时间获取数据
	 * @param type 类型
	 * @param bdate 开始时间
	 * @param edate 结束时间
	 * @return
	 */
	List<JfSltBackData> getJfBackListInCurrWeekByType(Integer type, String bdate, String edate,Long companyId);


	List<JfSltBackData> getJfBackListInCurrWeekByCompanyId(Long companyId, String bdate, String edate);

	List<FirstpartyDataChangeRecord> findBySettlementTimeAndCompanyId(Date settlementStartTime, Date settlementEndTime, Long companyId);

	Integer countCompanyProductClickUv(Date beginDate,Date endDate,List<Long> proIds);
	List<SettlementUvRecord> countPerProductClickUv(Date beginDate, Date endDate, List<Long> proIds);



}
